package com.leonyip.firstdemo.service;

import com.leonyip.firstdemo.entity.User;
import com.leonyip.firstdemo.utils.PageInfo;

import java.util.List;

public interface UserServie {
    List<User> getAll();
//通过id获取用户
    User getById(Integer id);

    List<User> findByUserName(String userName);

    PageInfo<User> getByPage(int pageNum, int pageSize);

    int update(User user);

    int save(User user);

    int delete(Integer id);
}
